<div style="float: left; width: 145px; margin-right: 10px;">
  <a class="city" id="city-all" href="<?php echo url_for('@city?city_name=all&category_name=all') ?>">Toate orasele (<?php echo OfferPeer::countAllActive() ?>)</a>
  <?php foreach($cities as $city): ?>
    <a class="city" title="Reduceri <?php echo $city->getName() ?>" id="city-<?php echo Utils::slugify($city->getName()) ?>" href="<?php echo url_for('@city?city_name='.Utils::slugify($city->getName()).'&category_name=all') ?>"><?php echo $city->getName() ?> (<?php echo $city->countOffers() ?>)</a>
  <?php endforeach; ?>
</div>

<div style="float: left; width: 145px;">
  <a class="city" id="category-all" href="<?php echo url_for('@city?city_name='.$sf_request->getParameter('city_name').'&category_name=all') ?>">Toate categoriile (<?php echo OfferPeer::countAllActive($city_id) ?>)</a>
  <?php foreach($categories as $category): ?>
    <a class="city" title="Reduceri <?php echo $category->getName() ?>" id="category-<?php echo Utils::slugify($category->getName()) ?>" href="<?php echo url_for('@city?city_name='.$sf_request->getParameter('city_name').'&category_name='.Utils::slugify($category->getName())) ?>"><?php echo $category->getName() ?> (<?php echo $category->countOffers($city_id) ?>)</a>
  <?php endforeach; ?>
</div>

<div style="clear: both"></div>

<div style="margin: 10px 0 10px 0; width: 300px; background-color: #ffffff;">
  <iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FReduceri-Cadouri%2F182974521721759&amp;width=300&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=true&amp;height=243" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:243px;" allowTransparency="true"></iframe>
</div>

<?php $random = rand(900, 1000) ?>
<?php if($random <=950): ?>  
  <script type="text/javascript"><!--
  google_ad_client = "ca-pub-7634296240444560";
  /* reduceri3 */
  google_ad_slot = "6672384115";
  google_ad_width = 300;
  google_ad_height = 250;
  //-->
  </script>
  <script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  </script>
<?php else: ?>
  <script type="text/javascript" src="http://profitshare.emag.ro/get_ads.php?zone_id=77494"></script>
<?php endif; ?>
